package com.zzx.boot.servlet;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzx.boot.entity.dto.SupportDto;
import com.zzx.boot.entity.table.LoginUser;
import com.zzx.boot.entity.table.Support;
import com.zzx.boot.entity.vo.SupportVo;

import java.util.Map;

/**
 * @author tan
 * @version 1.0
 * @date 2023/7/10 12:13
 */
public interface SupportService extends IService<Support> {
    /**
     * 用户顶踩
     * @return
     */
    String createSupport(SupportDto supportDto);

    /**
     * 通过用户id获取顶踩记录
     * @param id
     * @return
     */
    Map<Long, SupportVo> getBetchByUserId(LoginUser user);

    SupportVo getUserId(LoginUser loginUser,Long postId);
}
